<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsIntegralTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('integral', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->integer('integral_value')->comment('积分值');
			$table->tinyInteger('sources')->comment('获取积分渠道1为第一次发帖,2为绑定手机,3为绑定两个及以上的第三方账号,4为给言士创作好评');
			$table->integer('time')->comment('获取积分时间');
			$table->bigInteger('uid')->comment('用户id');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('integral');
	}

}
